package com.gosling.cloudspace.common.entity.bo;

import com.gosling.cloudspace.common.constants.CommonConstants;
import com.gosling.cloudspace.common.constants.PrometheusTitleEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 全局异常链路监控 请求参数
 *
 * @author lihonglin
 * @date 2024/2/22 15:27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ExpBO {
    @ApiModelProperty("监控分类")
    @NotNull(message = "监控分类不能为空")
    private PrometheusTitleEnum titleEnum;
    @ApiModelProperty("接口地址")
    private String uri;
    @ApiModelProperty("错误信息")
    @NotBlank(message = "错误信息不能为空")
    private String msg;
    @ApiModelProperty("请求参数")
    private String reqData;
    @ApiModelProperty("是否展示")
    private Integer showFlag = CommonConstants.YES;
    @ApiModelProperty("是否@所有人 @all")
    private Integer atAll = CommonConstants.NO;
}
